package cc.xiaoxiya.yy.opt.text;

import cc.xiaoxiya.yy.comm.Entity;
import net.sf.json.JSONObject;

public  class TextAction extends Entity{
	private String uri;//uir  http://www.biqudao.com/bqge24946/1790665.html
	private String html;//页面内容
	private String name;//文本名
	private String content;//文本内容
	private String dir;//下载到本地的地址
	private Boolean flag;//是否需要下载
	public TextAction(String uri,
			String dir, Boolean flag) {
		super();
		this.uri = uri;
		this.dir = dir;
		this.flag = flag;
	}
	public TextAction(String uri,String name,
					  String dir, Boolean flag) {
		super();
		this.uri = uri;
		this.name = name;
		this.dir = dir;
		this.flag = flag;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getHtml() {
		return html;
	}

	public void setHtml(String html) {
		this.html = html;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}

	public Boolean getFlag() {
		return flag;
	}

	public void setFlag(Boolean flag) {
		this.flag = flag;
	}

	@Override
	public String toString() {
		return JSONObject.fromObject(this).toString();
	}

}
